using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace BLL.Services.Comments.Listing
{
    public class CommentsListing
    {
        public CommentsListing()
        {
            Comments = new List<Comment>();
            Filter = new CommentFilter();
        }

        public List<Comment> Comments { get; set; }

        public int Page { get; set; }

        public int TotalPages { get; set; }

        public int Size { get; set; }

        public int Direction { get; set; }

        public string Column { get; set; }

        public CommentFilter Filter { get; set; }

        public class Comment
        {
            public int CommentId { get; set; }

            public string DateOfPublish { get; set; }

            public int BookId { get; set; }

            [Display(Name = "Book Title")]
            public string BookTitle { get; set; }

            public int UserId { get; set; }

            [Display(Name = "User Email")]
            public string UserEmail { get; set; }
        }
    }
}
